package com.yl.pattern.behavioralmodel.observer;

/**
 * @Author 小羊
 * @Date 1/11/2024下午 3:16
 * @ClassName WeiXinUser
 * @Description 具体的观察者角色类
 */
public class WeiXinUser implements Observer{
    private String name;

    public WeiXinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
